<template>
  <el-col :span="13" class="nav">
    <el-menu
      default-active="/home"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#242730"
      text-color="#fff"
      active-text-color="#409EFF"
      router
      >
      <el-menu-item index="/home" class="menu">
        <i class="el-icon-house"></i>
        <span slot="title">首页</span>
      </el-menu-item>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-s-order"></i>
          <span>文章管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/articleClassification"><i class="el-icon-s-data"></i>文章分类</el-menu-item>
          <el-menu-item index="/articleList"><i class="el-icon-document-copy"></i>文章列表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-user"></i>
          <span>个人中心</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/changeUserMsg"><i class="el-icon-s-operation"></i>基本信息</el-menu-item>
          <el-menu-item index="/changeUserPic"><i class="el-icon-camera"></i>更换头像</el-menu-item>
          <el-menu-item index="/changeUserPassword"><i class="el-icon-key"></i>重置密码</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-col>
</template>

<script>
export default {
  name: 'aside-nav',
  methods: {
    handleOpen (key, keyPath) {
    },
    handleClose (key, keyPath) {
    }
  }
}
</script>

<style scoped lang="less">
.el-col{
  width: 200px;
  height: 100%;
}
.el-menu{
  position:relative;
  right: 20px;
  border: 0;
  top: 20px;
}
.menu{
  text-align: left;
  margin-left: 40px;
}
.el-menu-item-group{
  position: relative;
  left: 15px;
  font-size: 250px;
}
</style>
